package com.autumn.annotations.value.value;

import org.springframework.beans.factory.annotation.Value;

/**
 * ClassName: Person
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2022/1/26 10:18 上午
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2022/1/26 10:18 上午   @Version 1.0        描述
 */
public class Person {

    @Value("叶秋蓉")
    private String name;

    @Value("#{2*8}")
    private int age;

    @Value("${person.nickName}")
    private String nickName;

    public Person() {
        super();
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", nickName='" + nickName + '\'' +
                '}';
    }
}
